<!DOCTYPE html>
<html>
<head>
	<title>ECMAScript6 Class定义规范语法 解析器 </title>
	<meta charset="utf-8">
	<script type="text/javascript" src="core/Classjs.js"></script> 
</head>
<body>
<script type="text/ECMAScript6">
Class Person {
    constructor (name,age) { 
        var me = this;
        me.name = name;
        me.age = age;
    }
    showName () {
        alert(this.name);
    }
    showAge () {
        alert(this.age);
    }
    setName (name) {
        this.name = name;
    }
}
</script>
<script type="text/javascript" src="core/Interpreter.js"></script>
<script type="text/javascript">
Interpreter.docReady(function(){  
	Interpreter.init();

	//实例化
	var Bob = new Person("Bob","28"); 
	Bob.showName();
	Bob.showAge();
}); 
</script>
</body>

</html>